package com.project.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author zhangyang
 * @since 2021-10-06
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_customer")
public class Customer extends Model {

    private static final long serialVersionUID = 1L;

    /**
     * 顾客id
     */
    @TableId(value = "pk_customerId", type = IdType.AUTO)
    private Integer customerId;

    /**
     * 顾客编号
     */
    @TableField("c_code")
    private String code;

    /**
     * 顾客真实名字
     */
    @TableField("c_realName")
    private String realName;

    /**
     * 顾客联系电话
     */
    @TableField("c_phone")
    private String phone;

    /**
     * 性别
     */
    @TableField("c_sex")
    private String sex;

    /**
     * 客户消费总金额
     */
    @TableField(exist = false)
    private int orderMoney;

    /**
     * 客户消费总单数
     */
    @TableField(exist = false)
    private int orderNum;
}
